package com.navi.loaddata.core.oracleEntity;

import com.navi.loaddata.core.oracleEntity.array.EtlArrayChipV;
import com.navi.loaddata.core.oracleEntity.cell1.EtlCellChipV;
import com.navi.loaddata.core.oracleEntity.cf.EtlCfChipV;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * Created by Jay on 2018/3/27.
 */

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface EtlChipVMapper {

    EtlChipVMapper INSTANCE = Mappers.getMapper(EtlChipVMapper.class);

    EtlArrayChipV etlChipToArray(EtlChipV chipVMapper);
    List<EtlArrayChipV> etlChipToArray(List<EtlChipV> list);

    EtlCfChipV etlChipToCf(EtlChipV chipVMapper);
    List<EtlCfChipV> etlChipToCf(List<EtlChipV> list);


    @Mapping(target = "componentId",source = "glassId")//属性名不一致映射
    @Mapping(target = "componentEndTime",source = "glassEndTime")//属性名不一致映射
    EtlCellChipV etlChipToCell1(EtlChipV chipVMapper);
    List<EtlCellChipV> etlChipToCell1(List<EtlChipV> list);
}
